package com.company.cloud.goodsrestservice.service;

import com.alibaba.fastjson.JSONObject;
import com.company.cloud.goodsrestservice.core.Service;
import com.company.cloud.goodsrestservice.model.Sku;

import java.util.List;


/**
 * Created by reabout on 2018/03/05.
 */
public interface SkuService extends Service<Sku> {
	
	//通过时间段获取SKU列表
	public List<Sku> getSkuListByTime(Long startTime, Long endTime);

	//通过物料码获取SKU
	public List<Sku> getSkuByMaterialNumber(String materialNumber);

	//更新库存，返回影响行数
	public Integer updateStock(String materialNumber, Integer stock, Integer locationId);

	//通过orderId获取SKU List
	public List<Sku> getSkuByOrderId(Integer orderId);


	public List<Sku> getSkuByGoodsNumber(String goodsNumber);

	public List<Sku> getSkuBySkuName(String skuName);

	public List<Sku> getSkuByCategory(String category);

	public List<Sku> getSkuBySearch(Object value);

	public List<Sku> getSkuByJson(JSONObject sku);

	public List<Sku> getSkuAll();
}
